package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.pojo.Category;
import com.itheima.result.R;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpSession;

/**
 * @Author: 斌
 * @DateTime: 2023年02月06日  20:37:32
 * @Description: com.itheima.service
 * @Version: 1.0
 */
public interface CategoryService extends IService<Category> {
    R selectCategory(Integer page, Integer pageSize,Category category);
    @Transactional
    R addCategory(Category category, HttpSession session);

    R updateCategory(Category category, HttpSession session);

    R deleteCategory(Long id);

    R listCategory(Category category);
}
